package com.gxa.modules.mapper.propertymapper;

import com.gxa.modules.pojo.Car;
import com.gxa.modules.pojo.Visitor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CarManageMapper {

    List<Car> selectAllCarManageForPage(@Param("page")  int page, @Param("size")int size);

    int  selectAllCarManageForPagesum(@Param("page")  int page, @Param("size")int size);

    List<Car> selectAllCarManage(@Param("page") int page, @Param("size") int size,
                                 @Param("plateNumber") String plateNumber,
                                 @Param("carModel")String carModel,
                                 @Param("phone") String phone);

    int selectAllCarManagesum(String plateNumber, String carModel, String phone);

    int insertCarManage(Car car);

    /*111*/

    int deleteCarManageById(String id);

    void deleteCarManage(List<Integer> list);

    List<Car> selectDetails(int id);

    List<Car> selectAllCarRecordForPage(@Param("page")  int page, @Param("size")int size);

    int  selectAllCarRecordForPagesum(@Param("page")  int page, @Param("size")int size);

    List<Car> selectAllCarRecord(@Param("page") int page, @Param("size") int size,
                                 @Param("plateNumber") String plateNumber,
                                 @Param("accessTime") Date accessTime);

    int selectAllCarRecordsum(String plateNumber, Date accessTime);

    int deleteCarRecordById(String id);
}
